package com.hqyj.onlineExamination.modules.exam.entity;

import com.hqyj.onlineExamination.modules.common.entity.AbstractEntity;

import javax.persistence.Entity;
import javax.persistence.Table;

//试题
@Entity
@Table(name = "exam_question")
public class Question extends AbstractEntity {
    // 单选题、多选题、填空题、简答题、编程题
    private String type;
    // 属于哪个阶段的试题例如：javaSE  javaEE javaSpringBoot.....
    private String flag;
    //题目
    private String content;
    //试题分数
    private Double score;
    //选项A的答案（填空、编程等题可省略）
    private String optionA;
    //选项B的答案（填空、编程等题可省略）
    private String optionB;
    //选项C的答案（填空、编程等题可省略）
    private String optionC;
    //选项D的答案（填空、编程等题可省略）
    private String optionD;
    //参考答案
    private String referenceAnswer;
    //评论
    private String comment;
    //图片路径
    private String picture;

    private int typeNum;

    public int getTypeNum() {
        return typeNum;
    }

    public void setTypeNum(int typeNum) {
        this.typeNum = typeNum;
    }

    public String getPicture() {
        return picture;
    }

    public void setPicture(String picture) {
        this.picture = picture;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getFlag() {
        return flag;
    }

    public void setFlag(String flag) {
        this.flag = flag;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Double getScore() {
        return score;
    }

    public void setScore(Double score) {
        this.score = score;
    }

    public String getOptionA() {
        return optionA;
    }

    public void setOptionA(String optionA) {
        this.optionA = optionA;
    }

    public String getOptionB() {
        return optionB;
    }

    public void setOptionB(String optionB) {
        this.optionB = optionB;
    }

    public String getOptionC() {
        return optionC;
    }

    public void setOptionC(String optionC) {
        this.optionC = optionC;
    }

    public String getOptionD() {
        return optionD;
    }

    public void setOptionD(String optionD) {
        this.optionD = optionD;
    }

    public String getReferenceAnswer() {
        return referenceAnswer;
    }

    public void setReferenceAnswer(String referenceAnswer) {
        this.referenceAnswer = referenceAnswer;
    }

    public String getComment() {
        return comment;
    }

    public void setComment(String comment) {
        this.comment = comment;
    }
}
